import Cookies from 'js-cookie'

const TokenKey = 'vue_template_token';
const NameKey = 'name';
const uuidKey = 'uuid';
const AppidKey = 'appid';
const footerKey = 'footer';

export function getToken() {
  return localStorage.getItem(TokenKey)
}

export function setToken(token) {
  return localStorage.setItem(TokenKey, token)
}

export function removeToken() {
  return localStorage.removeItem(TokenKey)
}


export function getlocalStorage(key) {
  return localStorage.getItem(key)
}

export function setlocalStorage(key,token) {
  return localStorage.setItem(key, token)
}

export function removelocalStorage(key) {
  return localStorage.removeItem(key)
}
export function getName() {
  return localStorage.getItem(NameKey)
}

export function setName(name) {
  return localStorage.setItem(NameKey, name)
}

export function removeName() {
  return localStorage.removeItem(NameKey)
}

export function setLoginInfo(key,value) {
  return Cookies.set(key,value)
}
export function getLoginInfo(key) {
  return Cookies.get(key)
}
export function removeLoginInfo(TokenKey) {
  return Cookies.remove(TokenKey)
}
export function getUuid() {
  return Cookies.get(uuidKey)
}

export function setUuid(token) {
  return Cookies.set(uuidKey, token)
}

export function removeUuid() {
  return Cookies.remove(uuidKey)
}

export function getAppid() {
  return Cookies.get(AppidKey)
}

export function setAppid(token) {
  return Cookies.set(AppidKey, token)
}

export function removeAppid() {
  return Cookies.remove(AppidKey)
}

export function getFooter() {
  return Cookies.get(footerKey)
}

export function setFooter(footer) {
  return Cookies.set(footerKey, footer)
}

export function removeFooter() {
  return Cookies.remove(footerKey)
}
